package com.four.order.feign;

import com.four.common.utils.R;
import com.four.common.vo.CommodityTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: hxw
 * @Date: 2022/1/17 21:31
 */
@FeignClient("four-seckill")
@RequestMapping("seckill")
public interface SeckillFeign {

    /**
     * feign调用根据编号查询商品的详情
     * @param commId
     * @return
     */
    @GetMapping("/commodity/getByCommId")
    public CommodityTo getByCommId(@RequestParam("commId") Integer commId);


    /**
     * 修改状态
     * @param byCommId
     * @return
     */
    @PostMapping("/commodity/updateByStatus")
    R updateByStatus(@RequestBody CommodityTo byCommId);

}
